package org.minbox.framework.microservice.user.service.impl;

import org.minbox.framework.microservice.common.entity.UserInfo;
import org.minbox.framework.microservice.user.mapper.UserMapper;
import org.minbox.framework.microservice.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 用户业务逻辑实现
 *
 */
@Service
@Transactional
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public UserInfo selectById(Integer userId) {
        return userMapper.selectOne(userId);
    }
}
